home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
751-760
/
760
/
memmin
/
memmin.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
3KB
|
73 lines
M E M M I N V1.1
MEMMIN
is a utility that will tell you how much memory has been used by a
program, and how much you had to spare. Call it before the program and when
the dust has settled and the program departed you will be left with a little
window showing something like this:
Used Chip: 184 All: 355400
Remaining Chip: 1896032 All: 4577314
Simple enough - but a little more detail . . .
Call it from the CLI. Just type
MEMMIN
; it detaches, so there is no need
to 'run'. A small window will open at the top of the screen showing a low
figure at
Used
- taken by Memmin itself after the initial installation cost,
and your current available memory at
Remaining
. The
All
is a total of both
chip and fast memory.
From now on, until the window is closed, it will update its display when
ever a new demand causes the remaining memory to fall below the figure shown.
Releasing memory will not change the display, which continues to show the
maximum used at any time and minimum then remaining. Subsequently demanding
more memory will only change the display if the new demand exceeds the size of
the release.
One point to remember is that it will take into account ALL memory usage,
not just that of the program that you are investigating. Get all the screen
and window shifting and any other preparations out of the way before calling
MEMMIN
.
To clear the window and close Memmin click its CLOSEWINDOW gadget.
Technical
(well not really)
You will almost certainly have tried to get memory usage by watching the
display of graphics and other memory in the Workbench screen header strip,
only to find that the sampling rate is so slow that a program can call memory,
use it, and release it, without the changing figures being shown. There are
many good memory meter displays around, but in general if they are fast enough
to catch fleeting memory usage they are changing too fast to be read! Hence
the need for a latching display like Memmin.
Memmin samples every 10 millisecs; a higher rate could very easily be used
however it has been found that no advantage is gained, and it would appear
that the registers from which available memory is read may only be updated
once per scan or 50-60 times a second. It must be borne in mind that if a
programme holds a block of memory for less than 50 msecs (less for NTSC), this
may escape notice. If anyone can see a way of getting round this, please
advise me.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MEMMIN is Freeware. It may be copied and distributed freely and used
without charge for non_profit-making purposes. Authority for profit-making
use should be obtained from the author below.
No responsibility can be accepted for any loss resulting from its use.
Comments, suggestions, bug-reports all welcome.
Chas A. Wyndham,
1265 Canning Mills Road,
Roleystone,
WA 6111.
Australia